#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QTimer>
#include <QDateTime>
#include "changewidget.h"
#include "loginwidget.h"
#include "resigerwidget.h"
#include "selectwidget.h"
#include "adminwidget.h"
#include "managewidget.h"
#include "changewidget.h"
#include "deliverywidget.h"
#include "recordwidget.h"
#include "statisticswidget.h"
#include "warehousingwidget.h"
#include "analysiswidget.h"
#include "supplierwidget.h"
#include "orderwidget.h"
#include "qualitywidget.h"
namespace Ui {
class MainWidget;
}

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    explicit MainWidget(QWidget *parent = nullptr);
    ~MainWidget();

protected:
    virtual void resizeEvent(QResizeEvent *event);

public slots:
    void setWidget(QString);


private:
    Ui::MainWidget *ui;

    LoginWidget       *m_LoginWidget;
    ResigerWidget     *m_ResigerWidget;
    SelectWidget      *m_SelectWidget;
    AdminWidget       *m_AdminWidget;
    ChangeWidget      *m_ChangeWidget;
    ManageWidget      *m_ManageWidget;
    DeliveryWidget    *m_DeliveryWidget;
    RecordWidget      *m_RecordWidget;
    StatisticsWidget  *m_StatisticsWidget;
    WarehousingWidget *m_WarehousingWidget;
    AnalysisWidget    *m_AnalysisWidget;
    SupplierWidget    *m_SupplierWidget;
    OrderWidget       *m_OrderWidget;
    QualityWidget     *m_QualityWidget;
public:
    static QString currentUser;
    static QString currentphone;
    static QString currentpasswd;
};

#endif // MAINWIDGET_H
